<?php

use think\facade\Route;

//商城后端路由表
Route::group('admin', function () {

    //商品列表
    Route::post('AdminShopGoods/goodsList', 'AdminShopGoods/goodsList');
    //获取公司与分类
    Route::post('AdminShopGoods/companyAndCate', 'AdminShopGoods/companyAndCate');

    Route::post('AdminShopGoods/companyAndCateV2', 'AdminShopGoods/companyAndCateV2');
    //修改商品状态
    Route::post('AdminShopGoods/goodsStatusUpdate', 'AdminShopGoods/goodsStatusUpdate');
    //修改商品
    Route::post('AdminShopGoods/goodsUpdate', 'AdminShopGoods/goodsUpdate');
    //添加商品
    Route::post('AdminShopGoods/goodsAdd', 'AdminShopGoods/goodsAdd');
    //商品拼团信息列表
    Route::post('AdminShopCollage/goodsCollageList', 'AdminShopCollage/goodsCollageList');
    //获取规格
    Route::post('AdminShopCollage/getSpePrice', 'AdminShopCollage/getSpePrice');
    //添加商品拼团列表
    Route::post('AdminShopCollage/goodsCollageAdd', 'AdminShopCollage/goodsCollageAdd');
    //编辑商品拼团信息
    Route::post('AdminShopCollage/goodsCollageUpdate', 'AdminShopCollage/goodsCollageUpdate');
    //分类列表
    Route::post('AdminShopType/cateList', 'AdminShopType/cateList');

    Route::any('AdminShopType/cateInfoPage', 'AdminShopType/cateInfoPage');
    //商品分类状态修改
    Route::post('AdminShopType/cateStatusUpdate', 'AdminShopType/cateStatusUpdate');
    //获取商品分类顶级
    Route::post('AdminShopType/cateTop', 'AdminShopType/cateTop');
    //商品分类修改
    Route::post('AdminShopType/cateUpdate', 'AdminShopType/cateUpdate');
    //商品分类添加
    Route::post('AdminShopType/cateAdd', 'AdminShopType/cateAdd');
    //商品分类删除
    Route::post('AdminShopType/cateDelete', 'AdminShopType/cateDelete');
    //订单列表
    Route::post('AdminShopOrder/orderList', 'AdminShopOrder/orderList');
    //后端快递信息查询（order_id）
    Route::get('AdminShopOrder/orderExpressInfo', 'AdminShopOrder/orderExpressInfo');
    //订单导出
    Route::post('AdminExcel/orderExcel', 'AdminExcel/orderExcel');
    //订单详情
    Route::post('AdminShopOrder/orderInfo', 'AdminShopOrder/orderInfo');
    //订单提货
    Route::post('AdminShopOrder/selfOrder', 'AdminShopOrder/selfOrder');
    //订单发货
    Route::post('AdminShopOrder/orderSend', 'AdminShopOrder/orderSend');
    //按部门更新订单
    Route::get( 'AdminShopOrder/refreshOrder', 'AdminShopOrder/refreshOrder');

    Route::post( 'AdminShopOrder/expressUpdate', 'AdminShopOrder/expressUpdate');
    //退款订单列表
    Route::post('AdminShopOrderRefund/orderRefundList', 'AdminShopOrderRefund/orderRefundList');
    //全额退款
    Route::post('AdminShopOrderRefund/orderRefund', 'AdminShopOrderRefund/orderRefund');
    //拒绝退款
    Route::post('AdminShopOrderRefund/cancelRefund', 'AdminShopOrderRefund/cancelRefund');
    //拼团列表
    Route::post('AdminShopCollage/collageList', 'AdminShopCollage/collageList');
    //添加福包
    Route::post('AdminCoupon/couponsAdd', 'AdminCoupon/couponsAdd');
    //福包列表
    Route::post('AdminCoupon/couponList', 'AdminCoupon/couponList');
    //获取商品和分类
    Route::post('AdminCoupon/getGoodsAndCate', 'AdminCoupon/getGoodsAndCate');
    //福包编辑
    Route::post('AdminCoupon/couponUpdate', 'AdminCoupon/couponUpdate');
    //福包二维码
    Route::post('AdminCoupon/couponShareQr', 'AdminCoupon/couponShareQr');
    //交易设置
    Route::post('AdminShopSetting/configInfo', 'AdminShopSetting/configInfo');
    //编辑商城设置
    Route::post('AdminShopSetting/configUpdate', 'AdminShopSetting/configUpdate');
    //支付设置
    Route::post('AdminShopSetting/configPay', 'AdminShopSetting/configPay');
    //快递配置详情
    Route::post('AdminShopSetting/expressInfo', 'AdminShopSetting/expressInfo');
    //修改快递配置
    Route::post('AdminShopSetting/expressUpdate', 'AdminShopSetting/expressUpdate');

    Route::get('AdminShopSetting/shareInfo', 'AdminShopSetting/shareInfo');

    Route::post('AdminShopSetting/shareUpdate', 'AdminShopSetting/shareUpdate');
    //商城轮播图列表
    Route::post('AdminShopBanner/bannerList', 'AdminShopBanner/bannerList');
    //添加商城轮播图
    Route::post('AdminShopBanner/bannerAdd', 'AdminShopBanner/bannerAdd');
    //删除商城轮播图
    Route::post('AdminShopBanner/bannerDel', 'AdminShopBanner/bannerDel');
    //商城轮播图编辑
    Route::post('AdminShopBanner/bannerUpdate', 'AdminShopBanner/bannerUpdate');
    //获取公司
    Route::post('AdminShopBanner/getCompany', 'AdminShopBanner/getCompany');
    //收益信息列表
    Route::get('AdminSellingProfit/profitList', 'AdminSellingProfit/profitList');
    //流水信息列表
    Route::get('AdminSellingWater/waterList', 'AdminSellingWater/waterList');
    //提现信息列表
    Route::get('AdminSellingCash/cashList', 'AdminSellingCash/cashList');
    //确认到账
    Route::post('AdminSellingCash/onCash', 'AdminSellingCash/onCash');
    //微信打款
    Route::post('AdminSellingCash/wxCash', 'AdminSellingCash/wxCash');
    //分销关系列表
    Route::get('AdminSellingProfit/relationList', 'AdminSellingProfit/relationList');
    //分销关系查找
    Route::get('AdminSellingProfit/relationSelect', 'AdminSellingProfit/relationSelect');
    //分销设置
    Route::post('AdminSellingProfit/retailSetting', 'AdminSellingProfit/retailSetting');
    //获取模版消息列表
    Route::get('AdminTmpl/shopTmpList', 'AdminTmpl/shopTmpList');
    //获取模版消息id
    Route::post('AdminTmpl/getTmplId', 'AdminTmpl/getTmplId');
    //修改模版消息
    Route::post('AdminTmpl/tmplUpdate', 'AdminTmpl/tmplUpdate');
    //test
    Route::post('IndexPayResunt/test', 'IndexPayResunt/test');

    Route::any('payResult', 'IndexPayResunt/payResult');

    Route::get('AdminExcel/orderExcel', 'AdminExcel/orderExcel');
    //获取商品参数列表
    Route::post('AdminShopGoods/goodsParameter','AdminShopGoods/goodsParameter');
    //获取商品参数下拉数据
    Route::post('AdminShopGoods/getParameterList','AdminShopGoods/getParameterList');
    //商品参数新增
    Route::post('AdminShopGoods/goodsParameterAdd','AdminShopGoods/goodsParameterAdd');
    //商品参数回写
    Route::get('AdminShopGoods/goodsParameterEdit','AdminShopGoods/goodsParameterEdit');
    //商品参数编辑
    Route::post('AdminShopGoods/goodsParameterEdit','AdminShopGoods/goodsParameterEdit');
    //商品参数状态修改
    Route::post('AdminShopGoods/goodsParameterStatus','AdminShopGoods/goodsParameterStatus');
    //商品参数模板列表
    Route::post('AdminShopGoods/goodsParameterTemplate','AdminShopGoods/goodsParameterTemplate');
    //下拉获取模板数据
    Route::get('AdminShopGoods/parameterTemplateList','AdminShopGoods/parameterTemplateList');
    //销售员申请列表
    Route::get('AdminSellingProfit/getDistributor','AdminSellingProfit/getDistributor');
    //销售员统计数量
    Route::get('AdminSellingProfit/getDistributorCount','AdminSellingProfit/getDistributorCount');
    //销售员申请详情
    Route::get('AdminSellingProfit/getDistributorInfo','AdminSellingProfit/getDistributorInfo');
    //销售员审核操作
    Route::get('AdminSellingProfit/exDistributor','AdminSellingProfit/exDistributor');
    //商品参数模板新增
    Route::post('AdminShopGoods/goodsParameterTemplateAdd','AdminShopGoods/goodsParameterTemplateAdd');
    //商品参数模板编辑
    Route::post('AdminShopGoods/goodsParameterTemplateEdit','AdminShopGoods/goodsParameterTemplateEdit');
    //商品参数模板编辑回写
    Route::get('AdminShopGoods/goodsParameterTemplateEdit','AdminShopGoods/goodsParameterTemplateEdit');
    //商品参数模板状态修改
    Route::post('AdminShopGoods/goodsParameterTemplateStatus','AdminShopGoods/goodsParameterTemplateStatus');
    //商品编辑模板数据返回
    Route::any('AdminShopGoods/getTemplateInfo','AdminShopGoods/getTemplateInfo');

    Route::any('AdminShopGoods/updateSpe','AdminShopGoods/updateSpe');

    Route::get('AdminShopGoods/goodsInfoPage','AdminShopGoods/goodsInfoPage');
    //商品模板参数是否可以删除判断
    Route::post('AdminShopGoods/goodsParameterTemplateDel','AdminShopGoods/goodsParameterTemplateDel');
    //添加自提点
    Route::post('AdminStore/storeAdd','AdminStore/storeAdd');
    //自提点编辑
    Route::post('AdminStore/storeUpdate','AdminStore/storeUpdate');
    //自提点回显
    Route::post('AdminStore/storeInfo','AdminStore/storeInfo');
    //自提点删除|修改状态
    Route::post('AdminStore/statusUpdate','AdminStore/statusUpdate');
    //自提点列表
    Route::post('AdminStore/storeList','AdminStore/storeList');

    Route::any('AdminPurchase/tmpList','AdminPurchase/tmpList');

    Route::any('AdminPurchase/tmpInfo','AdminPurchase/tmpInfo');
    //添加模版
    Route::any('AdminPurchase/tmpAdd','AdminPurchase/tmpAdd');
    //编辑
    Route::any('AdminPurchase/tmpUpdate','AdminPurchase/tmpUpdate');
    //上下架|删除（id,status）
    Route::any('AdminPurchase/tmpStatusUpdate','AdminPurchase/tmpStatusUpdate');
    //添加活动
    Route::any('AdminBargain/atvAdd','AdminBargain/atvAdd');
    //活动列表
    Route::any('AdminBargain/atvList','AdminBargain/atvList');
    //活动编辑
    Route::any('AdminBargain/atvUpdate','AdminBargain/atvUpdate');
    //活动详情
    Route::any('AdminBargain/atvInfo','AdminBargain/atvInfo');
    //活动上下架|删除
    Route::any('AdminBargain/atvStatusUpdate','AdminBargain/atvStatusUpdate');

    Route::any('AdminBargain/configInfo','AdminBargain/configInfo');

    Route::any('AdminBargain/configUpdate','AdminBargain/configUpdate');
    //参与情况
    Route::any('AdminBargain/recordList','AdminBargain/recordList');
    //批发价活动列表
    Route::any('AdminShopGoods/wholesaleList','AdminShopGoods/wholesaleList');
    //添加批发价活动
    Route::any('AdminShopGoods/wholesaleAdd','AdminShopGoods/wholesaleAdd');
    //编辑批发价活动
    Route::any('AdminShopGoods/wholesaleUpdate','AdminShopGoods/wholesaleUpdate');
    //批发价活动上下架
    Route::any('AdminShopGoods/wholesaleStatusUpdate','AdminShopGoods/wholesaleStatusUpdate');
    //批发价规则详情
    Route::any('AdminShopGoods/wholesaleInfo','AdminShopGoods/wholesaleInfo');
    //打印机列表
    Route::get('AdminPrinter/printerList','AdminPrinter/printerList');
    //添加打印机
    Route::post('AdminPrinter/printerAdd','AdminPrinter/printerAdd');
    //打印机详情
    Route::get('AdminPrinter/printerInfo','AdminPrinter/printerInfo');
    //编辑打印机
    Route::post('AdminPrinter/printerUpdate','AdminPrinter/printerUpdate');
    //门店下拉框
    Route::get('AdminPrinter/storeSelect','AdminPrinter/storeSelect');




});
Route::get('AdminExcel/orderExcel', 'AdminExcel/orderExcel');

//商城前端路由表

//商品列表
Route::get('IndexShopGoods/goodsList', 'IndexShopGoods/goodsList');
//商品列表diy版本
Route::get('IndexShopGoods/goodsListV2', 'IndexShopGoods/goodsListV2');
//获取下级分类
Route::get('IndexShopGoods/getSonCate', 'IndexShopGoods/getSonCate');
//商品搜索
Route::get('IndexShopGoods/goodsPageList', 'IndexShopGoods/goodsPageList');
//商品详情
Route::get('IndexShopGoods/goodsInfo', 'IndexShopGoods/goodsInfo');
//批发价活动明细
Route::get('IndexShopGoods/wholesaleSelect', 'IndexShopGoods/wholesaleSelect');
//砍价活动列表
Route::get('IndexShopGoods/bargainList', 'IndexShopGoods/bargainList');
//获取地址列表
Route::get('IndexUser/addressList', 'IndexUser/addressList');
//福报领取
Route::post('IndexShopCoupon/couponGet', 'IndexShopCoupon/couponGet');
//积分兑换卡券
Route::post('IndexShopCoupon/integralCouponGet', 'IndexShopCoupon/integralCouponGet');
//购物车
Route::post('IndexShopCar/carList', 'IndexShopCar/carList');
//添加地址
Route::post('IndexUser/addressAdd', 'IndexUser/addressAdd');
//修改地址
Route::post('IndexUser/addressUpdate', 'IndexUser/addressUpdate');
//发起支付
Route::post('IndexShopOrder/payOrder', 'IndexShopOrder/payOrder');
//拼团详情
Route::post('IndexShopGoods/collageInfo', 'IndexShopGoods/collageInfo');
//默认地址
Route::post('IndexUser/addressDefault', 'IndexUser/addressDefault');
//加入购物车
Route::post('IndexShopCar/carAdd', 'IndexShopCar/carAdd');
//删除购物车
Route::post('IndexShopCar/carDel', 'IndexShopCar/carDel');
//选择优惠券
Route::post('IndexShopCoupon/couponCanUse', 'IndexShopCoupon/couponCanUse');
//订单列表
Route::post('IndexShopOrder/orderList', 'IndexShopOrder/orderList');

Route::post('IndexShopOrder/refundCollage', 'IndexShopOrder/refundCollage');
//重新发起支付
Route::post('IndexShopOrder/rePayOrder', 'IndexShopOrder/rePayOrder');
//订单详情
Route::post('IndexShopOrder/orderInfo', 'IndexShopOrder/orderInfo');
//取消订单
Route::post('IndexShopOrder/cancelOrder', 'IndexShopOrder/cancelOrder');
//获取模版id
Route::get('IndexShopOrder/getTmplList', 'IndexShopOrder/getTmplList');
//更多优惠券
Route::post('IndexShopCoupon/CouponListStatus', 'IndexShopCoupon/CouponListStatus');
//售后订单
Route::post('IndexShopOrder/orderRefundList', 'IndexShopOrder/orderRefundList');
//同意退款
Route::post('IndexShopOrder/refundMoney', 'IndexShopOrder/refundMoney');
//订单核销
Route::post('IndexShopOrder/orderHx', 'IndexShopOrder/orderHx');
//收货
Route::post('IndexShopOrder/endOrder', 'IndexShopOrder/endOrder');
//获取订单二维码
Route::get('IndexShopOrder/orderQr', 'IndexShopOrder/orderQr');
//我的优惠券
Route::post('IndexShopCoupon/userCouponList', 'IndexShopCoupon/userCouponList');
//我的收入
Route::post('IndexSellingProfit/myProfit', 'IndexSellingProfit/myProfit');
//支付
Route::post('IndexWxPay/returnPay', 'IndexWxPay/returnPay');
//申请退款
Route::post('IndexShopOrder/orderRefund', 'IndexShopOrder/orderRefund');
//取消退款
Route::post('IndexShopOrder/cancelRefund', 'IndexShopOrder/cancelRefund');

//获取商品配送方式
Route::post('IndexShopOrder/goodsSendStyle', 'IndexShopOrder/goodsSendStyle');
//下单时候的页面信息
Route::post('IndexShopOrder/payOrderInfo', 'IndexShopOrder/payOrderInfo');

Route::post('IndexShopOrder/payOrderV2', 'IndexShopOrder/payOrderV2');

Route::get('IndexShopOrder/orderExpressInfo', 'IndexShopOrder/orderExpressInfo');




Route::post('IndexShopOrder/memberInfo', 'IndexShopOrder/memberInfo');
//合伙人
Route::get('IndexSellingProfit/partner', 'IndexSellingProfit/partner');
//提现记录
Route::get('IndexSellingProfit/cashRecord', 'IndexSellingProfit/cashRecord');
//佣金流水
Route::get('IndexSellingProfit/cashWater', 'IndexSellingProfit/cashWater');

Route::any('IndexSellingProfit/cashWaterV2', 'IndexSellingProfit/cashWaterV2');
//申请提现
Route::post('IndexSellingProfit/sellingCash', 'IndexSellingProfit/sellingCash');
//分销商品
Route::post('IndexShopGoods/sellingGoods', 'IndexShopGoods/sellingGoods');
//设置为名片展示
Route::post('IndexShopGoods/doUserShop', 'IndexShopGoods/doUserShop');
//设置为名片主推
Route::post('IndexShopGoods/doExtension', 'IndexShopGoods/doExtension');
//获取二维码
Route::post('IndexShopGoods/getQr', 'IndexShopGoods/getQr');
//员工优惠券
Route::post('IndexShopCoupon/staffCouponList', 'IndexShopCoupon/staffCouponList');
//员工优惠券详情
Route::post('IndexShopCoupon/staffCouponInfo', 'IndexShopCoupon/staffCouponInfo');
//福包码
Route::get('IndexShopCoupon/couponQr', 'IndexShopCoupon/couponQr');
//福报记录详情
Route::post('IndexShopCoupon/recordInfo', 'IndexShopCoupon/recordInfo');
//核销
Route::post('IndexShopCoupon/couponHx', 'IndexShopCoupon/couponHx');

Route::any('IndexShopCoupon/shareCoupon', 'IndexShopCoupon/shareCoupon');

Route::any('IndexShopCoupon/shareCouponInfo', 'IndexShopCoupon/shareCouponInfo');

Route::post('IndexShopCoupon/couponInfo', 'IndexShopCoupon/couponInfo');

//获取当前审核状态
Route::post('IndexUser/getDistributorStatus', 'IndexUser/getDistributorStatus');
//申请会销员
Route::post('IndexUser/applicationDistributor', 'IndexUser/applicationDistributor');

//商品参数详情
Route::get('IndexShopGoods/getGoodsParameter', 'IndexShopGoods/getGoodsParameter');

//获取购买数量
Route::post('IndexShopOrder/getPayNumber', 'IndexShopOrder/getPayNumber');
//代付订单信息(order_id)
Route::get('IndexShopOrder/helpOrderInfo', 'IndexShopOrder/helpOrderInfo');
//代付支付接口（order_id)
Route::post('IndexShopOrder/helpPay', 'IndexShopOrder/helpPay');
//order_id
Route::post('IndexShopOrder/delStock', 'IndexShopOrder/delStock');
//代付配置信息
Route::get('IndexShopOrder/helpPayConfig', 'IndexShopOrder/helpPayConfig');

Route::post('IndexShopGoods/collageList', 'IndexShopGoods/collageList');

Route::any('IndexShopGoods/topCate', 'IndexShopGoods/topCate');

Route::post('IndexShopGoods/memberGoodsList', 'IndexShopGoods/memberGoodsList');
//门店自提多少天
Route::any('IndexStore/storeDay', 'IndexStore/storeDay');

Route::any('IndexStore/storeTime', 'IndexStore/storeTime');
//自提列表
Route::any('IndexStore/storeList', 'IndexStore/storeList');

Route::any('IndexStore/storeListV2', 'IndexStore/storeListV2');

Route::any('IndexStore/storeInfo', 'IndexStore/storeInfo');

Route::any('IndexPurchase/tmpList', 'IndexPurchase/tmpList');
//模版里面的分类列表
Route::any('IndexPurchase/tmpCateList', 'IndexPurchase/tmpCateList');
//选择的所有分类列表
Route::any('IndexPurchase/allCateList', 'IndexPurchase/allCateList');
//用户添加自己的模版
Route::any('IndexPurchase/addUserTmp', 'IndexPurchase/addUserTmp');
//个人中心点进去的模版列表
Route::any('IndexPurchase/userTmpList', 'IndexPurchase/userTmpList');

Route::any('IndexPurchase/tmpInfo', 'IndexPurchase/tmpInfo');
//发起砍价
Route::any('IndexBargain/recordAdd', 'IndexBargain/recordAdd');
//砍价记录详情
Route::any('IndexBargain/recordInfo', 'IndexBargain/recordInfo');
//我的砍价列表
Route::any('IndexBargain/myRecordList', 'IndexBargain/myRecordList');
//帮忙砍价
Route::any('IndexBargain/bargainAdd', 'IndexBargain/bargainAdd');
//砍价列表
Route::any('IndexBargain/recordUserList', 'IndexBargain/recordUserList');

Route::any('IndexBargain/userCancelAtv', 'IndexBargain/userCancelAtv');




























